<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Hola
 *
 * @author alejandro
 */
class HolaController extends Controller {

    public function accessRules()
    {
        return array(
            array('allow',  // allow all users to perform 'index' and 'view' actions
            'actions'=>array('index','view','updateajax'),
            'users'=>array('*'),
               )
        );
    }
    public function actionIndex()
    {
        $data = array();
        $data["myValue"] = "Contenido cargado";

        $this->render('index', $data);
    }

    public function actionUpdateAjax()
    {
        $data = array();
        $data["myValue"] = "Contenido actualizado en AJAX";

        $this->renderPartial('_ajaxContent', $data, false, true);
    }
}
?>
